using System;
using Castle.Components.Validator;

namespace WineCellar.Business.Entities
{
    public class Cellar
    {

        [ValidateNonEmpty("Name is a required field")]
        public virtual string Name { get; set; }

        public virtual DateTime? DateAdded { get; set; }

        public virtual int? Id { get; set; }

        public virtual User User { get; set; }
	    

		
        public override string ToString()
        {
            return Name;
        }
    }
}